package com.ujoin.dao;

import java.util.List;

import com.ujoin.bean.Broadcast;

public interface IBroadcastDAO {

	public abstract void save(Broadcast transientInstance);

	public abstract void delete(Broadcast persistentInstance);

	public abstract Broadcast findById(java.lang.Integer id);

	public abstract List findByExample(Broadcast instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByUserId(Object userId);

	public abstract List findByActicityId(Object activityId);

	public abstract List findByIsRead(Object isRead);

	public abstract List findAll();

	public abstract Broadcast merge(Broadcast detachedInstance);

	public abstract void attachDirty(Broadcast instance);

	public abstract void attachClean(Broadcast instance);
	
	/* Newly Added Function. 后来加入的函数
	 * author Daniel
	 */
	public abstract List findUnreadBroadcastByUserId(Object userId);
	
	public abstract Broadcast findByUserIdActivityId(Object userId, Object activityId);

}